package com.xiaohui.gwc.mode;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @Author: Poppin
 * @Date: 2021/11/30 12:27
 * @Version: 1.0
 */
@Data
@TableName("products")
public class Products {

    @TableId(value = "pid")
    private Integer pid;
    private String pname;
    private float price;
    private String pic;
    private String author;
    private String press;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date pubdate;

}
